import $axios from '../index.js'

// 用户菜单列表
function list(data) {
  const url = '/adminmenu/getUserMenuList'
  return $axios.get(url, data)
}

// 菜单新增
function save(data) {
  const url = '/adminMenu/save'
  return $axios.post(url, data)
}
// 菜单编辑
function update(data) {
  const url = '/adminMenu/update'
  return $axios.post(url, data)
}
// 菜单删除
function dele(data) {
  const url = '/adminMenu/delete'
  return $axios.post(url, data)
}

export default {
  list,
  save,
  update,
  dele
}
